import Vue from "vue";
import App from "./App.vue";
import { plugin } from "vue-function-api";
import router from "./router";
import store from "./store";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import "./mockjs/index"; // 导入mockjs  // baseURL 解开了 mockjs就要注释

Vue.config.productionTip = false;

import * as filters from "./filters"; // 时间过滤;
Object.keys(filters).forEach((key) => {
  Vue.filter(key, filters[key]);
});

Vue.use(ElementUI);
Vue.use(plugin);

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
